import activity from './routes/activity.js'
import record from './routes/record.js'

const redpacket = {
    install: function(Vue, options) {
        let router = options.router;
        router.addRoutes(activity);
        router.addRoutes(record);
    }
}

if (typeof window !== 'undefined' && window.Vue) {
  window.Vue.use(redpacket)
}
export default redpacket